import allure

from api.info import InfoAPI


class TestGetLngAndLat:

    # 前置处理
    def setup_method(self):
        self.info_api = InfoAPI()

    @allure.title("正地理编码接口")
    def test01_success(self):
        data = {
            "address": "上海市上海野生动物园",
            "serviceCode": "agent"
        }
        res = self.info_api.getLngAndLat(data=data)
        print(res.json())
        assert 200 == res.status_code
